package com.lh.bootswagger.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author lh
 * @Description: 学生类
 * @date 2021/4/1 16:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "student")
@ApiModel(description = "学生")
public class Student {
	@ApiModelProperty(value = "主键id",hidden = true)
	@Id
	private String s_id;
	@ApiModelProperty(value = "学生名称")
	@Column
	private String s_name;
	@ApiModelProperty(value = "学生生日")
	@Column
	private String s_birth;
	@ApiModelProperty(value = "学生性别")
	@Column
	private String s_sex;
}
